package com;

import java.lang.reflect.Method;
import java.lang.annotation.Annotation;
public class myreflection {
	
	public static void main(String[] args) throws Exception 
	
	{
	  
	 		
	   Class<annotationuse> myuse=annotationuse.class;
	   
	   Method method=myuse.getMethod("myprint", new Class[]{});
	   
	   method.invoke(myuse.newInstance(), new Object[]{});
	   
	   if(method.isAnnotationPresent(annotationtest.class));
	   {
		 
		  
		   annotationtest mytest=method.getAnnotation(annotationtest.class);
		   
		   String v1=mytest.value1();
		   String v2=mytest.value2();
		   System.out.println(v1+"||"+v2);
		   
	   }
	   
	   
	
	}

}
